package main

import (
	"fmt"
)

type student struct {
	Name string
	Age  int
}

func pase_student() map[string]*student {

	// 空字典
	m := make(map[string]*student)

	// 数组，有三个student对象
	stus := []student{
		{Name: "zhou", Age: 24},
		{Name: "li", Age: 23},
		{Name: "wang", Age: 22},
	}

	for i, _ := range stus {
		stu := stus[i];
		fmt.Println(stu);
		fmt.Printf("%p",&stu)
		m[stu.Name] = &stu
	}

	return m
}

func main() {
	students := pase_student()
	for k, v := range students {
		fmt.Printf("key=%s,value=%v \n", k, v)
	}
}